<?php
    class pista{
    	private $id;
		private $nom;
		private $categories;
		private $prioritat;
		
		public function setId($id){
			$this->id = $id;
		}
		
		public function getId(){
			return $this->id;
		}
		
		public function setNom($n){
			$this->nom = $n;
		}
		
		public function getNom(){
			return $this->nom;
		}
		
		public function addCat($cat){
			$this->categories[] = $cat;
		}
		
		public function getCats(){
			return $this->categories;
		}
		
		public function setPrioritat($p){
			$this->prioritat = $p;
		}
		
		public function getPrioritat(){
			return $this->prioritat;
		}
    }
?>